x_zoli
Advanced Member level 4
- Joined
- Jul 22, 2004
- Messages
- 105
- Helped
- 9
- Reputation
- 18
- Reaction score
- 3
- Trophy points
- 1,298
- Location
- Brasov, Romania
- Activity points
- 787
8051 parameters
Hi all
Can anyone tell me how to pass sbit and/or sfr addresses as function parameters in Ke*il, so that later on I can assign values to those sbits or sfrs (more specifically port pins, or an entire port).
I am trying to write a set of LCD functions (HD44780 compatible) and make it a library. Using it as a library, I have to make it flexible to the level that the data port and control pins can be specified by the means of library functions. This is where my problem begins.
Thanks
Hi all
Can anyone tell me how to pass sbit and/or sfr addresses as function parameters in Ke*il, so that later on I can assign values to those sbits or sfrs (more specifically port pins, or an entire port).
I am trying to write a set of LCD functions (HD44780 compatible) and make it a library. Using it as a library, I have to make it flexible to the level that the data port and control pins can be specified by the means of library functions. This is where my problem begins.
Thanks